import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  taskNo: [{ required: true, message: "任务号为必填项", trigger: "blur" }],
  startPos: [{ required: true, message: "取货位为必填项", trigger: "blur" }],
  endPos: [{ required: true, message: "放货位为必填项", trigger: "blur" }],
  taskType: [{ required: true, message: "任务类型为必填项", trigger: "change" }],
});
